<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="ru" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<!-- blueprint CSS framework -->
	<!--
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
        -->
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

        <!--
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" /> 
        -->
        
        
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.min.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-theme.min.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">
        <div class="row">
            <div class="col-md-2"></div>
            <div class="col-md-8">            
            <nav class="navbar navbar-default" role="navigation">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#"><span class="glyphicon glyphicon-phone-alt"></span></a>
            </div>                
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <?php $this->widget('zii.widgets.CMenu',array(
                            'items'=>array(
                                    array('label'=>'Сотрудники организации', 'url'=>array('/emp/mgremporg')),
                                    array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
                                    array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
                            ),
                            'htmlOptions'=>array(
                                'class'=>'nav navbar-nav',
                            ),
                    )); ?>
                </div>
            </nav><!-- mainmenu -->
            <?php if(isset($this->breadcrumbs)):?>
                    <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                            'links'=>$this->breadcrumbs,
                    )); ?><!-- breadcrumbs -->
            <?php endif?>
                <!--<div id="header">
                        <div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
                </div><!-- header -->                    
            </div>            
            <div class="col-md-2"></div>
        </div>
        <div class="row">
            <?php echo $content; ?>
        </div>

	<footer id="footer">
            <div class="row">
                <div class="col-md-2"></div>
                <div class="col-md-8" style="border-top: 1px solid #EEEEEE; margin-top: 20px; padding-bottom: 20px; padding-top: 20px;">
                    &copy; <?php echo date('Y'); ?> ЦТР ИТ<br/>
                </div>
                <div class="col-md-2"></div>
            </div>
	</footer><!-- footer -->

</div><!-- page -->

</body>
</html>
